set(THIS_LIBNAME kernel)


include_directories(${GLB_INC_DIR}/kernel)
include_directories(${GLB_INC_DIR}/innerapi)


## ========================================================= ##
## Only Modify Here, if you want to add a driver directory   ##
## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ##
## ========================================================= ##
list(APPEND LST_ASTRAL sched)
list(APPEND LST_ASTRAL stdio)
list(APPEND LST_ASTRAL device)
list(APPEND LST_ASTRAL task)
list(APPEND LST_ASTRAL misc)
list(APPEND LST_ASTRAL irqm)
list(APPEND LST_ASTRAL timer)
list(APPEND LST_ASTRAL mem)



## usually, do not need to modify things below this line
## ========================================================= ##
project(${THIS_LIBNAME})

foreach(SUBMOD ${LST_ASTRAL})
    add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/${SUBMOD})
endforeach()


## ===================================== ##
## Generally, it is NOT been supposed    ##
## to modify the code below this line.   ##
## ===================================== ##

message(STATUS "\n-- [^.^]********${THIS_LIBNAME}********[^.^]")
message(STATUS "The sources in [ " ${CMAKE_CURRENT_LIST_DIR} " ] are:")
foreach(SRC ${SRCS})
    message(STATUS "[src] " ${SRC})
endforeach()



rearchive(${THIS_LIBNAME} OBJS ${LST_ASTRAL})